import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import NavType from '@comp/NavType'
import Pagination from '@comp/Pagination'
import store from '@/store/index'
import '@/mock/mockServer'
import Swiper from '@comp/Swiper'
Vue.config.productionTip = false
Vue.component('NavType',NavType)
Vue.component('Pagination',Pagination)
Vue.component('Swiper',Swiper)
new Vue({
  render: h => h(App),
  router,
  store,
    //事件总线的设置(注意:千万不要写在mounted中,请参考父子组件的生命周期流程)
  beforeCreate(){
    Vue.prototype.$bus=this
  }
}).$mount('#app')

